package com.hotleproject.mapper;

import com.hotleproject.pojo.Hotle;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface HotleMapper {
    List<Hotle> selectAll();
    int selectHotlegetCount();
    List<Hotle> selectHotleByHotleCity(String hotleCity,int pageNo,int pageSize);
    int getCount();
    List<Hotle> pageList(int pageNo,int pageSize);
//添加酒店
    void insertHotle(String hotlename,String hotleCity,String hotlePhone,String hotleImg,String hotleDec);
    void updateHotle(String hotlename,String hotleCity,String hotlePhone,String hotleImg,String hotleDec,String Beforehotlename);

    void deleteHotle(String hotlename);
}
